package com.gestocasa.dao;

public class DAOException extends Exception {

	private String error;
	
	public DAOException(String error) {
		this.error = error;
	}
	
	@Override
	public String getMessage() {
		if(error != null) {
			return "["+getClass().getName()+":"+error+"]";
		}
		else {
			return super.getMessage();
		}
	}
}
